import { COMPONENT_TYPES, BG_POSITION_REPEAT_TYPES_MAP } from '@/const/'
import { getMapByArr } from '@/utils/'

const REFRESH_COMMON_ATTR = [
  COMPONENT_TYPES.wb_text,
  COMPONENT_TYPES.wb_img,
  COMPONENT_TYPES.wb_video,
  COMPONENT_TYPES.wb_timer,
  COMPONENT_TYPES.wb_mc,
  COMPONENT_TYPES.wb_svg_icon,
  COMPONENT_TYPES.wb_dropdown,
]
const BG_POSITION_REPEAT_TYPES = [
  { name:'宽高最大', value: BG_POSITION_REPEAT_TYPES_MAP.centerTop },
  { name:'宽高最小', value: BG_POSITION_REPEAT_TYPES_MAP.contain },
  { name:'宽度100%', value: BG_POSITION_REPEAT_TYPES_MAP.width },
  { name:'背景不拉伸置于页面底部', value: BG_POSITION_REPEAT_TYPES_MAP.centerBottom },
  { name:'纵向平铺', value: BG_POSITION_REPEAT_TYPES_MAP.repeatY },
  { name:'变形拉伸', value: BG_POSITION_REPEAT_TYPES_MAP.whole }
]

const INPUT_TYPES = [
  {value: 'name', name: '姓名'},
  {value: 'phone', name: '手机'},
  {value: 'email', name: '邮箱'},
  {value: 'code', name: '验证码'},
  {value: 'other', name: '其他'},
  {value: 'weibo', name: '微博用户信息'},
  {value: 'fixed', name: '固定信息'},
]
const INPUT_TYPES_MAP = getMapByArr(INPUT_TYPES)

const BORDER_STYLES = [
  { name: "无", value:'none' },
  { name: "实线", value:'solid' },
  { name: "点状边框", value:'dotted' },
  { name: "虚线", value:'dashed' },
  { name: "双线", value:'double' },
  { name: "凹槽边框", value:'groove' },
  { name: "垄状边框", value:'ridge' },
  { name: "inset边框", value:'inset' },
  { name: "outset边框", value:'outset' },
]
const POSITION_TYPES = [
  { name: '自定义', value: 0 },
  { name: '置顶', value: 1 },
  { name: '置底', value: 2 },
  { name: '靠左', value: 3 },
  { name: '靠右', value: 4 },
  { name: '左上', value: 5 },
  { name: '右上', value: 6 },
  { name: '左下', value: 7 },
  { name: '右下', value: 8 },
  { name: '居中', value: 9 },
]

export {
  REFRESH_COMMON_ATTR,
  BG_POSITION_REPEAT_TYPES,
  INPUT_TYPES,
  INPUT_TYPES_MAP,
  BORDER_STYLES,
  POSITION_TYPES
}

export {
  MEDIAS,
  PAGE_TYPE_,
  ShareAttr,
  PRODUCT_TYPE,
  ALIGN_HORIZONTAL_TYPE,
  ALIGN_TYPE,
  PREVIEW_WIDTH
} from './const-web'

export {
  WbComponentDatas,
} from './const-web-wb-data'

export {
  EVENT_ATTR,
  ROTATE3D_LIST,
  INTERACTION_DATA,
  MENU_PATTERN,
  MOUSE_BEHAVIOR,
  EVENTS_RESULTS_TYPES,
  OPEN_PUSH_TYPES,
  EVENT_HOVER_WEB_TYPES,
  TOAST
} from './const-web-event'

export {
  FontSizes,
  FontFamilys,
  BorderStyles,
  TextInputStyles,
  PluginsCompLists,
  GroupComponentLists,
  PluginsFormLists,
  TEXT_STYLES,
  TEXT_STYLES_,
} from './const-web-top-data'

export {
  COMPONENT_TEXT_DATAKEYS,
  COMPONENT_IMG_DATAKEYS,
  PACKET_TYPE,
  PACKET_PUSH_TYPE,
  REPOSTS_KEYS,
  REPOSTS_KEY_VALUE_MAP
} from './const-web-data-drive'

export {
  getAnimateData
 } from './const-web-animates'

